
import { createApp } from 'vue'

import App from './App'
import router from './router'
import pinia from "@/pinia";
// 全局注册element-plus/icons-vue
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// 自定义字体
import KkSvgIconComponent from "@/components/KkSvgIcon/KkSvgIconComponent.jsx"
import "./iconfont.js"
import 'element-plus/dist/index.css'

import './styles/main.scss'
import '@/plugins/windi.css'


import KkPageComponent from '@/components/KkTable/KkTableComponent';

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.component("SvgIcon", KkSvgIconComponent);
app.component("KkTable", KkPageComponent);
app.use(router)
app.use(pinia);
app.mount('#app')
